package com.indextank.roo.addon;

import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.annotations.populator.AbstractAnnotationValues;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulate;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulationUtils;
import org.springframework.roo.model.JavaType;

/**
 * Represents a parsed {@link RooIndextankWebSearchable} annotation.
 */
public class IndextankWebSearchAnnotationValues extends AbstractAnnotationValues {
	
	@AutoPopulate String searchMethod = "search";
	
	public IndextankWebSearchAnnotationValues(PhysicalTypeMetadata governorPhysicalTypeMetadata) {
		super(governorPhysicalTypeMetadata, new JavaType(RooIndextankWebSearchable.class.getName()));
		AutoPopulationUtils.populate(this, annotationMetadata);
	}

	public String getSearchMethod() {
		return searchMethod;
	}

}
